import { defineComponent, ref ,watch,h, defineAsyncComponent, computed, inject} from 'vue'


export default defineComponent({

    setup(){




        let v:any= inject('views')
        console.log(v)
        const realv =computed(
            ()=>v
        )

        watch(
            ()=>v.value,
            (one,two)=>{
                console.log("导航开始！")
            }
        )

        return ()=>(
           h(v.value.default) 
        )
    
    }

}

)